import java.util.Scanner;

public class J03Lianxi {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.print("输入第一个数：");
        int num1 = sc.nextInt();
        System.out.print("输入第二个数：");
        int num2= sc.nextInt();

        int max1 = num1>num2?num1:num2;
        System.out.println("max1 = " + max1);

        int max2;
        if(num1>num2)
            max2=num1;
        else
            max2=num2;
        System.out.println("max2 = " + max2);
    }
}

class Chen{
    public static void main(String[] args) {
        int a=874;
        int b=6742;
        if (a>b) {
            System.out.println("最大值是:"+a);
        }else {
            System.out.println("最大值是:"+b);
        }
        System.out.println(a>b?"最大值是:"+a:"最大值是:"+b);
    }
}
